//
//  WZAFNetTool.h
//  InsKnowTime
//
//  Created by dllo on 16/3/7.
//  Copyright © 2016年 Wayne. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^BlockOfSuccess)(id reuslt);
typedef void(^AFNBlock)(id resuposeObject);
typedef void(^AFNError)(NSError *error);

typedef NS_ENUM(NSUInteger, WZresponseStyle) {
    WZJSON,
    WZXML,
    WZDATA,
};

typedef NS_ENUM(NSUInteger, WZRequestStyle) {
    WZRequestJSON,
    WZRequestString,
};
@interface WZAFNetTool : NSObject


+ (void)GetNetWithURL:(NSString *)URL WithBody:(id)body headfile :(NSDictionary *)hearer
            response :(WZresponseStyle)responseStyle
              success:(BlockOfSuccess)success
              failure:(void (^)(NSError * error))failure;



+ (void)PostNetWithURL:(NSString *)URL WithBody:(id)body
            bodyStyle : (WZRequestStyle)bodyRequestStyle
             headfile :(NSDictionary *)hearer
            response :(WZresponseStyle)responseStyle
              success:(BlockOfSuccess)success
              failure:(void (^)(NSError * error))failure;


+(CGSize)labelRectWithSize:(CGSize)size
                 LabelText:(NSString *)labelText
                      Font:(UIFont *)font;



@end
